package com.irdstudio.apicenter.gateway.web.view;

import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class ViewFormat {

	
	@Pointcut("execution (* com.yuchengtech.maccs.web.view.*.renderView())")
	public void pointcut(){}
	
	@Before("pointcut()")
	public void before() {
		System.err.println("before");
	}
	
	
	 //方法执行的前后调用  
    @Around("pointcut()")
    public void around(){
    	System.err.println("around");
    }
	
}
